package structure.adapter.adapter_demo1;

/**
 * 适配器模式
 * AudioPlayer原本只能播放mp3，通过适配器可以播放vlc和mp4
 *
 * @author yeyangtao
 * @date 2020/6/2 19:33
 */
public class Demo {
    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();

        audioPlayer.play("mp3", "666");

        audioPlayer.play("mp4", "444.mp4");
    }
}
